package engine.logic.hotKey
{
	public class HotKeyList
	{
		private var _hotKeyUIList:Array = [];
		
		private var _hotKeyAttackList:Array = [];
		
		private var _autoAttackList:Array = [];
		
		private const A:int = 65;
		private const B:int = 66;
		private const R:int = 82;
		private const S:int = 83;
		private const T:int = 84;
		private const M:int = 77;
		private const G:int = 71;
		private const C:int = 67;
		private const D:int = 68;
		private const P:int = 80;
		private const U:int = 85;
		private const K:int = 75;
		private const L:int = 76;
		private const Z:int = 90;
		
		
		private const Q:int = 81;
		private const W:int = 87;
		private const E:int = 69;
		
		private const CTRL:int = 17;
		public function HotKeyList()
		{
			init();
		}
		
		public function get hotKeyAttackList():Array
		{
			return _hotKeyAttackList;
		}

		public function get hotKeyUIList():Array
		{
			return _hotKeyUIList;
		}
		
		public function get autoAttackList():Array
		{
			return _autoAttackList;
		}

		private function init():void
		{
			hotKeyUI();
			hotKeyAttack();
			_autoAttackList = [CTRL,Z];
		}
		
		private function hotKeyUI():void
		{
			//背包界面
//			_hotKeyUIList.push([B,PackUI.getInstance()]);
//			//角色界面
//			_hotKeyUIList.push([R,RoleNewUI.getInstance()]);
			//技能界面
//			_hotKeyUIList.push([S,SkillUI.getInstance()]);
//			//任务界面
//			_hotKeyUIList.push([T,TaskUI.getInstance()]);
//			//地图界面
//			_hotKeyUIList.push([M,WorldMapUI.getInstance()]);
//			//消息提示界面
//			_hotKeyUIList.push([G,null]);
//			//副本列表界面
//			_hotKeyUIList.push([C,InstanceListUI.getInstance()]);G
//			//竞技场列表界面
//			_hotKeyUIList.push([P,PvpListUI.getInstance()]);
//			//邮件界面
//			_hotKeyUIList.push([U,MailUI.getInstance()]);
//			//排行榜界面
//			_hotKeyUIList.push([K,CastleRankUI.getInstance()]);
//			//成就界面
//			_hotKeyUIList.push([A,null]);
//			//领主界面
//			_hotKeyUIList.push([L,null]);
		}
		
		private function hotKeyAttack():void
		{
			//1-9
			_hotKeyAttackList.push([49,6]);
			_hotKeyAttackList.push([50,7]);
			_hotKeyAttackList.push([51,8]);
			_hotKeyAttackList.push([52,9]);
			_hotKeyAttackList.push([53,10]);
			_hotKeyAttackList.push([54,11]);
			_hotKeyAttackList.push([55,0]);
			_hotKeyAttackList.push([56,1]);
			_hotKeyAttackList.push([57,2]);
			//0
			_hotKeyAttackList.push([48,3]);
			//-
			_hotKeyAttackList.push([189,4]);
			//+
			_hotKeyAttackList.push([187,5]);
			
			//自动技能
			_hotKeyAttackList.push([Z,15]);
		}
	}
}